<template>
  <a-config-provider :locale="locale">
  <router-view v-slot="{ Component }">
    <transition name="fade" mode="out-in">
      <component :is="Component" />
    </transition>
  </router-view>
  </a-config-provider>
</template>

<script setup lang="ts">
import { RouterView } from 'vue-router'
import zhCN from 'ant-design-vue/es/locale/zh_CN';
import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn';
import '@/assets/markdown.css'

dayjs.locale('zh-cn');
const locale = zhCN
</script>

<style lang="less" scoped>
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.2s;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

.fadeAndMove-enter-active {
  transition: all 0.4s;
}

.fadeAndMove-enter-from {
  transform: translateY(-10px);
  opacity: 0;
}
</style>